import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getAlbumList(data) {
    return request({
        url: appUrl + '/album/search',
        method: 'post',
        data
    })
}

export function addAlbum(data) {
    return request({
        url: appUrl + '/album/create',
        method: 'post',
        data
    })
}

export function editAlbum(data) {
    return request({
        url: appUrl + '/album/update',
        method: 'post',
        data
    })
}

export function getAlbumInfo(data) {
    return request({
        url: appUrl + '/album/info',
        method: 'post',
        data
    })
}

export function deleteAlbum(data) {
    return request({
        url: appUrl + '/album/delete',
        method: 'post',
        data
    })
}

export function getAllAlbum(data) {
    return request({
        url: appUrl + '/album/list',
        method: 'post',
        data: {}
    })
}
